/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sisvoto.modelo;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;

/**
 *
 * @author DJ2-PC
 */
@Entity
public class HuellaDactilar implements Serializable{

    @Id
    @GeneratedValue(strategy= GenerationType.AUTO)
    private Integer id;
    @ManyToOne
    private Elector elector;

    @Lob
    @Column(name="huella",columnDefinition="LONGBLOB" )
    private byte[] huella = new byte[5000];
    
    @Column(nullable=false)
    private String dedo; 
    
    //public static final int maxContentSize = 2097152;
    
    public Elector getElector() {
        return elector;
    }

    public void setElector(Elector elector) {
        this.elector = elector;
    }

    public String getDedo() {
        return dedo;
    }

    public void setDedo(String dedo) {
        this.dedo = dedo;
    }

    public byte[] getHuella() {
        return huella;
    }

    public void setHuella(byte[] huella) {
        this.huella = huella;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    
        
    
}
